package dao;

import java.util.List;

import model.*;

public class DAOUserPJ extends DAOJPA<UserPJ> {

	public DAOUserPJ(){
		super();
	}
	
	public List<UserPJ> findAllUsersPF(){
		return (List<UserPJ>) super.findAll();
	}
	
	// delete
	public int removeUser(String cnpj){
		return super.removeByQuery("delete from UserPJ u where u.cnpj = \'" + cnpj + "\'");
	}
}
